/**
 * Created by chenwei on 2016/6/3.
 */
angular.module('app.feedback', [
])
.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
    $stateProvider
        .state('home.feedbacklist', {
            url: '/feedback/list',
            templateUrl: "tpls/feedback/list.html",
            resolve: {
                feedback_list : ['FeedbackService', function(FeedbackService){
                    return FeedbackService.getlist().$promise;
                }]
            },
            controller: 'FeedbackListController'
        })
}])

.controller('FeedbackListController', ['$scope','feedback_list', function($scope, feedback_list) {
    $scope.feedback_list = feedback_list;
}])
;